package be.bonamis.umpire.domain;

import java.io.Serializable;

public class UmpireDayId implements Serializable{

	private static final long serialVersionUID = -1922582482668774412L;
	private long umpireId;
	private long dayId;

	public long getUmpireId() {
		return umpireId;
	}

	public void setUmpireId(long umpireId) {
		this.umpireId = umpireId;
	}

	public long getDayId() {
		return dayId;
	}

	public void setDayId(long dayId) {
		this.dayId = dayId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (dayId ^ (dayId >>> 32));
		result = prime * result + (int) (umpireId ^ (umpireId >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UmpireDayId other = (UmpireDayId) obj;
		if (dayId != other.dayId)
			return false;
		if (umpireId != other.umpireId)
			return false;
		return true;
	}
}
